﻿using Prism;
using Prism.Commands;
using Prism.Mvvm;
using Prism.Navigation;
using Prism.Navigation.TabbedPages;
using System;
using System.Collections.Generic;
using System.Linq;

namespace TangReadyV1.ViewModels
{
   

    public class PageResultViewViewModel : ViewModelBase, IActiveAware
    {

        private DelegateCommand _fieldName;
        public DelegateCommand NextCommand { get; }

        public  INavigationService _navigationService;



        void ExecuteCommandName()
        {

            _navigationService.SelectTabAsync("PageParam");


        }
        public PageResultViewViewModel(INavigationService navigationService) : base(navigationService)
        {
            Title = "历史查询";
            _navigationService = navigationService;
            NextCommand = new DelegateCommand(ExecuteCommandName);

        }

        public event EventHandler IsActiveChanged;

        private bool _isActive;
        public bool IsActive
        {
            get { return _isActive; }
            set { SetProperty(ref _isActive, value, RaiseIsActiveChanged); }
        }

        protected virtual void RaiseIsActiveChanged()
        {
            IsActiveChanged?.Invoke(this, EventArgs.Empty);
        }
    }
}
